<?php
/**
 * SocialEngine
 *
 * @category   Application_Core
 * @package    User
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.com/license/
 * @version    $Id: index.tpl 9747 2012-07-26 02:08:08Z john $
 * @author     John
 */
?>

<style>

.promotions_info {
    overflow: hidden;
    padding: 0 0 0 6px;
}
.promotions_name {
    font-weight: bold;
}

.layout_talktangle_friends > ul > li {
    clear: both;
    overflow: hidden;
    padding: 3px 5px;
}

.layout_talktangle_friends a.popularmembers_thumb {
    display: block;
    float: left;
    height: 48px;
    width: 48px;
}

.layout_talktangle_friends > ul{
    background-color: #23428C;
    background-repeat: repeat-x;
    border: 1px solid #FFFFFF;
    border-radius: 3px 3px 3px 3px;
    padding: 5px;
}
</style>
<ul>
  <?php foreach( $this->paginator as $user ): ?>
    <li>
		<?php echo $this->htmlLink($user->getHref(), $this->itemPhoto($user, 'thumb.icon', $user->getTitle()), array('title'=>$user->getTitle(),'class'=>'popularmembers_thumb')) ?>
		<div class='promotions_info'>
			<div class='promotions_name'>
			  <?php echo $this->htmlLink($user->getHref(),$user->displayname) ?>
			</div>
			<div class="popularmembers_friends">
				<?php echo $this->translate(array('%s point', '%s points', $user->points),$this->locale()->toNumber($user->points)) ?>
			</div>
      </div>
	</li>
  <?php endforeach; ?>
  <?php if (is_null($this->paginator) || $this->paginator->count() <= 0 ):?>
    <div class="tip">
        <span>There is no your friend</span>
    </div>
  <?php endif;?>
</ul>
